home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / times.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  308 b   |  16 lines

  1. #include "lib.h"
  2. #include <sys/types.h>
  3. #include <sys/times.h>
  4.  
  5. PUBLIC clock_t times(buf)
  6. struct tms *buf;
  7. {
  8.   int k;
  9.   k = callm1(FS, TIMES, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  10.   buf->tms_utime = M.m4_l1;
  11.   buf->tms_stime = M.m4_l2;
  12.   buf->tms_cutime = M.m4_l3;
  13.   buf->tms_cstime = M.m4_l4;
  14.   return(k);
  15. }
  16.